#!/bin/bash
#
# Extracts raw trace data from the sqlite3 result file, producing a CSV file
# containing the simulation trace. Note that this is the *simulation* trace,
# including timestamped queue size and event processing rate information, NOT
# the results produced from that trace.

APP=`dirname $0`/sql_to_csv

if [ $# -ne 2 ]; then
   echo "Usage: $0 <trace_sq3_file> <csv_output_file>"
   exit 2
fi

$APP "$1" "$2" trace
